package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.HatchetAcqIncreaseBindMapper;
import com.ruoyi.system.domain.HatchetAcqIncreaseBind;
import com.ruoyi.system.service.IHatchetAcqIncreaseBindService;
import com.ruoyi.common.support.Convert;

/**
 * 通道信用卡绑定 服务层实现
 * 
 * @author ruoyi
 * @date 2019-04-28
 */
@Service
public class HatchetAcqIncreaseBindServiceImpl implements IHatchetAcqIncreaseBindService 
{
	@Autowired
	private HatchetAcqIncreaseBindMapper hatchetAcqIncreaseBindMapper;

	/**
     * 查询通道信用卡绑定信息
     * 
     * @param iD 通道信用卡绑定ID
     * @return 通道信用卡绑定信息
     */
    @Override
	public HatchetAcqIncreaseBind selectHatchetAcqIncreaseBindById(String iD)
	{
	    return hatchetAcqIncreaseBindMapper.selectHatchetAcqIncreaseBindById(iD);
	}
	
	/**
     * 查询通道信用卡绑定列表
     * 
     * @param hatchetAcqIncreaseBind 通道信用卡绑定信息
     * @return 通道信用卡绑定集合
     */
	@Override
	public List<HatchetAcqIncreaseBind> selectHatchetAcqIncreaseBindList(HatchetAcqIncreaseBind hatchetAcqIncreaseBind)
	{
	    return hatchetAcqIncreaseBindMapper.selectHatchetAcqIncreaseBindList(hatchetAcqIncreaseBind);
	}
	
    /**
     * 新增通道信用卡绑定
     * 
     * @param hatchetAcqIncreaseBind 通道信用卡绑定信息
     * @return 结果
     */
	@Override
	public int insertHatchetAcqIncreaseBind(HatchetAcqIncreaseBind hatchetAcqIncreaseBind)
	{
	    return hatchetAcqIncreaseBindMapper.insertHatchetAcqIncreaseBind(hatchetAcqIncreaseBind);
	}
	
	/**
     * 修改通道信用卡绑定
     * 
     * @param hatchetAcqIncreaseBind 通道信用卡绑定信息
     * @return 结果
     */
	@Override
	public int updateHatchetAcqIncreaseBind(HatchetAcqIncreaseBind hatchetAcqIncreaseBind)
	{
	    return hatchetAcqIncreaseBindMapper.updateHatchetAcqIncreaseBind(hatchetAcqIncreaseBind);
	}

	/**
     * 删除通道信用卡绑定对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteHatchetAcqIncreaseBindByIds(String ids)
	{
		return hatchetAcqIncreaseBindMapper.deleteHatchetAcqIncreaseBindByIds(Convert.toStrArray(ids));
	}
	
}
